package com.lvy.hczn.front.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lvy.hczn.front.system.domain.business.DeliveryOrderDetail;
import com.lvy.hczn.front.system.domain.business.PurchaseOrder;
import com.lvy.hczn.front.system.domain.business.PurchaseOrderDetail;
import com.lvy.hczn.front.business.dto.Param;

import java.util.List;

public interface DeliveryOrderDetailService extends IService<DeliveryOrderDetail> {

    /**
     * 取货单查询采购明细，当明细为空时，认为处理完，则更新状态为完成
     *
     * @param param
     * @return java.util.List<com.lvy.hczn.model.order.PurchaseOrderDetail>
     * @author yw
     * @date 2022-04-13 16:40:31
     */
    List<PurchaseOrderDetail> entryByDeliverCode(Param param) throws Exception;

    /**
     * 仓库角度，采购单生成仓库取货单入库
     *
     * @param purchaseOrderInfo
     */
    void generateDeliver(PurchaseOrder purchaseOrderInfo);
}
